home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir36 / zipall12.zip / ZIPALLT.BAT < prev    next >
DOS Batch File  |  1993-05-02  |  2KB  |  38 lines

  1. @echo off
  2. REM
  3. REM ZIPALLT.BAT
  4. REM
  5. REM This BAT file can be executed from within any subdirectory to cause PKZIP
  6. REM to implode every file in the current directory and every file in its child
  7. REM directories (if any) into a single file called ALLFILES.ZIP.  All the ori-
  8. REM ginal files are copied into the ZIP file, the affected directories retaining
  9. REM the original files.  Hidden and system files are zipped also.
  10. REM Attributes for Hidden, Read-only and System files are retained. 
  11. REM Use the "-d -Jhrs" switches when unzipping with PKUNZIP.EXE or just use 
  12. REM UNZIPALL.BAT if the file is on a machine containing the batch file.
  13. REM If you want to MOVE all affected files into ALLFILES.ZIP, use ZIPALL.BAT
  14. REM instead.
  15. REM
  16. if not exist allfiles.zip goto continue
  17. cls
  18. dir /w
  19. echo.
  20. echo This subdirectory already contains an ALLFILES.ZIP.  Delete it, or rename it
  21. echo if you really want to keep it within the new ALLFILES.ZIP.
  22. goto exit
  23. :continue
  24. pkzip allfiles *.* -ex -rp -whs -Jhrs
  25. if errorlevel 1 goto errexit
  26. dir
  27. echo ALLFILES.ZIP has been successfully created and original files retained.
  28. echo Use PKUNZIP.EXE with the "-d -Jhrs" switches to unzip -- this is necessary 
  29. echo to retain file attributes of Hidden, Read-only and System files and 
  30. echo to build child subdirectories, if necessary.  If you convert this .ZIP
  31. echo file to a .EXE using ZIP2EXE.EXE, you must remember to use the same  
  32. echo "-d -Jhrs" switches when the self-extracting ALLFILES.EXE is executed.
  33. goto exit
  34. :errexit
  35. echo Error in execution of PKZIP (via ZIPALLT.BAT).
  36. :exit
  37. echo on
  38.